package com.surfacing.rcp.client.providers;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import com.surfacing.rcp.client.modelManager.JournalManager;
import com.surfacing.rcp.client.modelManager.ModelFactory;

public class JournalViewContentProvider implements IStructuredContentProvider {
	public void inputChanged(Viewer v, Object oldInput, Object newInput) {
		// do nothing
	}

	public void dispose() {
		// do nothing
	}

	public Object[] getElements(Object parent) {
		JournalManager manager = ModelFactory.getInstance().getJournalManager();
		return manager.toArray();
	}
}
